package renderers 
{  
	import flash.events.MouseEvent;  
	
	import spark.components.Button;  
	import spark.components.IconItemRenderer;  
	
	public class ItemListRender extends IconItemRenderer  
	{  
		private var delButton:Button;  
		private var editButton:Button;  
		public function ItemListRender()  
		{  
			super();  
		}  
		/**  
		 * @private  
		 *   
		 * Override this method to create children for your item renderer   
		 */   
		override protected function createChildren():void  
		{  
			super.createChildren();  
			// create any additional children for your item renderer here  
			delButton=new Button();  
			delButton.x=this.parent.width-100;  
			delButton.y=25;  
			delButton.label="删除";  
			delButton.scaleX=0.6;  
			delButton.scaleY=0.6;  
			delButton.height=35;  
			delButton.width=70;  
			delButton.addEventListener(MouseEvent.CLICK,delHandleClick);  
			this.addChild(delButton);  
			
			editButton=new Button();  
			editButton.x=this.parent.width-50;  
			editButton.y=25;  
			editButton.label="修改";  
			editButton.scaleX=0.6;  
			editButton.scaleY=0.6;  
			editButton.height=35;  
			editButton.width=70;  
			editButton.addEventListener(MouseEvent.CLICK,editHandleClick);  
			this.addChild(editButton);  
		}  
		
		
		private function delHandleClick(event:MouseEvent):void{  
			
		}  
		private function editHandleClick(event:MouseEvent):void{  
			
		}  
	}  
}  